package cn.ibizlab.util.filter;

public class Page<T> extends com.baomidou.mybatisplus.extension.plugins.pagination.Page<T> {

    private long offset = 0;

    /**
     * 分页构造函数
     *
     * @param current 当前页
     * @param size    每页显示条数
     */
    public Page(long current, long size) {
        super(current, size);
    }

    public Page(long current, long size, long total) {
        super(current, size, total);
    }

    public Page(long current, long size, boolean searchCount) {
        super(current, size, searchCount);
    }

    public Page(long current, long size, long total, boolean searchCount) {
        super(current, size, total, searchCount);
    }

    @Override
    public long offset() {
        if (offset == 0)
            return super.offset();
        return offset;
    }

    public void offset(long offset) {
        this.offset = offset;
    }
}
